<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--可以设置判断msg不为空，则显示msg信息-->
    <p th:text="${msg}" th:if="${not #strings.isEmpty(msg)}" style="color: brown"  align="center"></p><br><hr/>

    <form id="form1" name="form1" method="post" th:action="loginin">

        <p style="text-align: center; font-style: normal; font-weight: bolder;">
            <label for="textfield"><span style="font-style: normal; font-weight: 600;">用户名：</span></label>
            <input name="username" type="text" id="textfield" size="30">

            <label for="password"><br>
                <br>
                密码：</label>
            <input name="password" type="password" id="password" size="30">
        </p>
        <p style="text-align: center; font-style: normal; font-weight: bolder;">
            <input type="submit" name="submit" id="submit" value="登录" size="90">
            <input type="reset" name="reset" id="reset" value="重置" size="90">
        </p>
    </form>

</div>

</body>
</html>